home *** CD-ROM | disk | FTP | other *** search
/ Know Your Hockey - The Greatest Player Resource / Know Your Hockey: The Greatest Player Resource.iso / hockey / director / ssqcst.cst / 00024_Script_Screen Prompts < prev    next >
Text File  |  1998-09-28  |  822b  |  27 lines

  1. global gPrompts
  2.  
  3. -- this script reads the appropriate screen prompts in from the text member "ScreenPrompts"
  4. -- gPrompts is used in the rollover script to set the prompt window
  5. on initPrompts
  6.   set the ItemDelimiter to ","
  7.   set gPrompts = []
  8.   repeat with x = 1 to 48
  9.     set theprompt = item 2 of line x of field "ScreenPrompts"
  10.     append(gPrompts, thePrompt)
  11.   end repeat
  12.   put "Select an item" into field "promptwindow"
  13.   set the forecolor of  member "promptwindow" = 0
  14. end
  15.  
  16. on setprompt a
  17.   if a < 1 or a = 38 then
  18.     put "Select an item" into field "promptwindow"
  19.     exit
  20.   end if
  21.   set test = the forecolor of member "promptwindow"
  22.   if test <> 0 then  set the forecolor of  member "promptwindow" = 0
  23.   set myprompt = (getat(gPrompts,a) ) 
  24.   put myprompt into field "promptwindow"
  25. end
  26.  
  27.